package com.spring.service;

import com.spring.dao.IAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.inject.Inject;

@Service
public class BeanService {
    @Autowired
    //@Qualifier("accountDao")
    //@Resource(type = IAccount.class,name ="accountDao")
    @Inject
    private IAccount accountDao;
    @Value("${name}")
    private String name;
    public void get(){
        System.out.println(accountDao+",name="+name);
    }


}
